<?php
// +----------------------------------------------------------------------
// | 路由设置
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('movie.admin', function () {
    Route::rule('index', '/api/movie.admin/index');
    Route::rule('add', '/api/movie.admin/add');
})->middleware(\app\api\middleware\CheckAdmin::class);


Route::group('consume.Activity', function () {
    Route::rule('index', '/api/consume.Activity/index');
    Route::rule('add', '/api/consume.Activity/add');
    Route::rule('edit', '/api/consume.Activity/edit');
    Route::rule('sortChange', '/api/consume.Activity/consumerLog');
    Route::rule('consumerLogRemove', '/api/consume.Activity/consumerLogRemove');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('consume.Banner', function () {
    Route::rule('index', '/api/consume.Banner/index');
    Route::rule('add', '/api/consume.Banner/add');
    Route::rule('edit', '/api/consume.Banner/edit');
    Route::rule('sortChange', '/api/consume.Banner/sortChange');
})->middleware(\app\api\middleware\CheckAdmin::class);


Route::group('consume.ClaimLog', function () {
    Route::rule('index', '/api/consume.ClaimLog/index');
    Route::rule('add', '/api/consume.ClaimLog/add');
    Route::rule('edit', '/api/consume.ClaimLog/edit');
    Route::rule('delete', '/api/consume.ClaimLog/delete');
    Route::rule('consumerList', '/api/consume.ClaimLog/consumerList');
})->middleware(\app\api\middleware\CheckAdmin::class);


Route::group('consume.classify', function () {
    Route::rule('index', '/api/consume.classify/index');
    Route::rule('add', '/api/consume.classify/add');
})->middleware(\app\api\middleware\CheckAdmin::class);



Route::group('consume.consumer', function () {
    Route::rule('index', '/api/consume.consumer/index');
    Route::rule('add', '/api/consume.consumer/add');
    Route::rule('edit', '/api/consume.consumer/edit');
    Route::rule('delete', '/api/consume.consumer/delete');
    Route::rule('consumerList', '/api/consume.consumer/consumerList');
})->middleware(\app\api\middleware\CheckAdmin::class);


Route::group('consume.ConsumerClaimLog', function () {
    Route::rule('index', '/api/consume.ConsumerClaimLog/index');
    Route::rule('consumerList', '/api/consume.ConsumerClaimLog/consumerList');
    Route::rule('consumerAll', '/api/consume.ConsumerClaimLog/consumerAll');
})->middleware(\app\api\middleware\CheckAdmin::class);


Route::group('consume.coupon', function () {
    Route::rule('index', '/api/consume.coupon/index');
    Route::rule('add', '/api/consume.coupon/add');
    Route::rule('edit', '/api/consume.coupon/edit');
})->middleware(\app\api\middleware\CheckAdmin::class);


Route::group('consume.Order', function () {
    Route::rule('index', '/api/consume.Order/index');
    Route::rule('edit', '/api/consume.Order/edit');
})->middleware(\app\api\middleware\CheckAdmin::class);


Route::group('consume.platform', function () {
    Route::rule('query', '/api/consume.platform/query');
    Route::rule('save', '/api/consume.platform/save');
    Route::rule('uploadConfigQuery', '/api/consume.platform/uploadConfigQuery');
    Route::rule('uploadConfigSave', '/api/consume.platform/uploadConfigSave');
    Route::rule('messageConfigQuery', '/api/consume.platform/messageConfigQuery');
    Route::rule('messageConfigSave', '/api/consume.platform/messageConfigSave');
})->middleware(\app\api\middleware\CheckAdmin::class);



Route::group('consume.store', function () {
    Route::rule('index', '/api/consume.store/index');
    Route::rule('add', '/api/consume.store/add');
    Route::rule('edit', '/api/consume.store/edit');

})->middleware(\app\api\middleware\CheckAdmin::class);



Route::group('consume.Stream', function () {
    Route::rule('index', '/api/consume.Stream/index');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('consume.Ticket', function () {
    Route::rule('index', '/api/consume.Ticket/index');
})->middleware(\app\api\middleware\CheckAdmin::class);





Route::group('consume.User', function () {
    Route::rule('index', '/api/consume.User/index');
})->middleware(\app\api\middleware\CheckAdmin::class);







Route::group('system.uploadFile', function () {
    Route::rule('index', '/api/system.uploadFile/index');
    Route::rule('cateList', '/api/system.uploadFile/cateList');
    Route::rule('addCate', '/api/system.uploadFile/addCate');
    Route::rule('delCate', '/api/system.uploadFile/delCate');
    Route::rule('delFile', '/api/system.uploadFile/delFile');
    Route::rule('uploadFile', '/api/system.uploadFile/uploadFile');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.auth', function () {
    Route::rule('user', '/api/system.auth/user');
    Route::rule('password', '/api/system.auth/password');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.role', function () {
    Route::rule('index', '/api/system.role/index');
    Route::rule('add', '/api/system.role/add');
    Route::rule('edit', '/api/system.role/edit');
    Route::rule('menu', '/api/system.role/menu');
    Route::rule('saveRoleMenu', '/api/system.role/saveRoleMenu');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.user', function () {
    Route::rule('index', '/api/system.user/index');
    Route::rule('agencyList', '/api/system.user/agencyList');
    Route::rule('agencyUser', '/api/system.user/agencyUser');
    Route::rule('add', '/api/system.user/add');
    Route::rule('addAgency', '/api/system.user/addAgency');
    Route::rule('addAgencyUser', '/api/system.user/addAgencyUser');
    Route::rule('addPartner', '/api/system.user/addPartner');
    Route::rule('partnerList', '/api/system.user/partnerList');
    Route::rule('pageList', '/api/system.user/pageList');
    Route::rule('getUser', '/api/system.user/getUser');
    Route::rule('getAdminProfileData', '/api/system.user/getAdminProfileData');
    Route::rule('getAdminSaleData', '/api/system.user/getAdminSaleData');
    Route::rule('getAdminChartData', '/api/system.user/getAdminChartData');
    
    Route::rule('getAgencyProfileData', '/api/system.user/getAgencyProfileData');
    Route::rule('getAgencySaleData', '/api/system.user/getAgencySaleData');
    Route::rule('getAgencyChartData', '/api/system.user/getAgencyChartData');
    
    Route::rule('getPartnerProfileData', '/api/system.user/getPartnerProfileData');
    Route::rule('getPartnerSaleData', '/api/system.user/getPartnerSaleData');
    Route::rule('getPartnerChartData', '/api/system.user/getPartnerChartData');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.menu', function () {
    Route::rule('index', '/api/system.menu/index');
    Route::rule('add', '/api/system.menu/add');
    Route::rule('edit', '/api/system.menu/edit');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.loginRecord', function () {
    Route::rule('index', '/api/system.loginRecord/index');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.operationRecord', function () {
    Route::rule('index', '/api/system.operationRecord/index');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('systemConfig', function () {
    Route::rule('save', '/api/systemConfig/save');
    Route::rule('query', '/api/systemConfig/query');
    Route::rule('queryVersion', '/api/systemConfig/queryVersion');
    Route::rule('saveVersion', '/api/systemConfig/saveVersion');
    Route::rule('proxyQuery', '/api/systemConfig/proxyQuery');
    Route::rule('saveProxy', '/api/systemConfig/saveProxy');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('common', function () {
    Route::rule('getAliyunToken', '/api/common/getAliyunToken');
    Route::rule('queryOss', '/api/common/queryOss');
    Route::rule('updateStatus', '/api/common/updateStatus');
    Route::rule('upload', '/api/common/upload');
    Route::rule('ossUpdate', '/api/common/ossUpdate');
    Route::rule('payUpdate', '/api/common/payUpdate');
    Route::rule('baseUpdate', '/api/common/baseUpdate');
    Route::rule('queryOssSet', '/api/common/queryOssSet');
    Route::rule('queryPaySet', '/api/common/queryPaySet');
    Route::rule('queryBaseSet', '/api/common/queryBaseSet');
    Route::rule('getSaleData', '/api/common/getSaleData');
    Route::rule('getPayData', '/api/common/getPayData');
    Route::rule('getVideoData', '/api/common/getVideoData');
    Route::rule('getCurShData', '/api/common/getCurShData');
    Route::rule('getAddShData', '/api/common/getAddShData');
    Route::rule('getShRank', '/api/common/getShRank');
    Route::rule('add', '/api/common/add');
    Route::rule('getRankSaleData', '/api/common/getRankSaleData');
    Route::rule('getMealData', '/api/common/getMealData');
    Route::rule('couponUpdate', '/api/common/couponUpdate');
    Route::rule('queryCoupon', '/api/common/queryCoupon');
    Route::rule('addScheme', '/api/common/addScheme');
    Route::rule('uploadPem', '/api/common/uploadPem');
    Route::rule('uploadFile', '/api/common/uploadFile');
    Route::rule('uploadApp', '/api/common/uploadApp');
    Route::rule('getProxySaleData', '/api/common/getProxySaleData');
    Route::rule('getProxyTbSaleData', '/api/common/getProxyTbSaleData');
    Route::rule('getProxyRankSaleData', '/api/common/getProxyRankSaleData');
    Route::rule('reloadQrcode', '/api/common/reloadQrcode');
    Route::rule('getOemShRank', '/api/common/getOemShRank');
    Route::rule('getLabel', '/api/common/getLabel');
    Route::rule('addLabel', '/api/common/addLabel');
    Route::rule('queryZgSet', '/api/common/queryZgSet');
    Route::rule('zgUpdate', '/api/common/zgUpdate');
    Route::rule('getZgDebitList', '/api/common/getZgDebitList');
    Route::rule('refZgNum', '/api/common/refZgNum');
})->middleware(\app\api\middleware\CheckAdmin::class);







Route::group('consume.template', function () {
    Route::rule('index', '/api/consume.template/index');
    Route::rule('save', '/api/consume.template/save');
})->middleware(\app\api\middleware\CheckAdmin::class);




Route::group('consume.goods', function () {
    Route::rule('index', '/api/consume.goods/index');
    Route::rule('save', '/api/consume.goods/orderList');
})->middleware(\app\api\middleware\CheckAdmin::class);